package com.idealighter.game.server.db.datadb.generate.mapper;

import com.idealighter.game.server.db.datadb.generate.domain.RoomCardRoomListDomain;
import com.idealighter.game.server.db.datadb.generate.domain.RoomCardRoomListDomainExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectKey;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface RoomCardRoomListDomainMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @SelectProvider(type=RoomCardRoomListDomainSqlProvider.class, method="countByExample")
    long countByExample(RoomCardRoomListDomainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @DeleteProvider(type=RoomCardRoomListDomainSqlProvider.class, method="deleteByExample")
    int deleteByExample(RoomCardRoomListDomainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @Delete({
        "delete from room_card_room_list",
        "where id = #{id,jdbcType=BIGINT}"
    })
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @Insert({
        "insert into room_card_room_list (player_id, super_id, ",
        "player_avatar, group_id, ",
        "game_id, game_name, ",
        "pay_by, price, renew_times, ",
        "bill_type, recharge_fee, ",
        "left_game, play_games, ",
        "left_time, create_time, ",
        "startTime, end_time, ",
        "state, remove, game_cfg)",
        "values (#{playerId,jdbcType=BIGINT}, #{superId,jdbcType=BIGINT}, ",
        "#{playerAvatar,jdbcType=VARCHAR}, #{groupId,jdbcType=INTEGER}, ",
        "#{gameId,jdbcType=INTEGER}, #{gameName,jdbcType=VARCHAR}, ",
        "#{payBy,jdbcType=TINYINT}, #{price,jdbcType=BIGINT}, #{renewTimes,jdbcType=INTEGER}, ",
        "#{billType,jdbcType=TINYINT}, #{rechargeFee,jdbcType=BIGINT}, ",
        "#{leftGame,jdbcType=INTEGER}, #{playGames,jdbcType=INTEGER}, ",
        "#{leftTime,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{starttime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, ",
        "#{state,jdbcType=TINYINT}, #{remove,jdbcType=TINYINT}, #{gameCfg,jdbcType=LONGVARCHAR})"
    })
    @SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="id", before=false, resultType=Long.class)
    int insert(RoomCardRoomListDomain record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @InsertProvider(type=RoomCardRoomListDomainSqlProvider.class, method="insertSelective")
    @SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="id", before=false, resultType=Long.class)
    int insertSelective(RoomCardRoomListDomain record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @SelectProvider(type=RoomCardRoomListDomainSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="player_id", property="playerId", jdbcType=JdbcType.BIGINT),
        @Result(column="super_id", property="superId", jdbcType=JdbcType.BIGINT),
        @Result(column="player_avatar", property="playerAvatar", jdbcType=JdbcType.VARCHAR),
        @Result(column="group_id", property="groupId", jdbcType=JdbcType.INTEGER),
        @Result(column="game_id", property="gameId", jdbcType=JdbcType.INTEGER),
        @Result(column="game_name", property="gameName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_by", property="payBy", jdbcType=JdbcType.TINYINT),
        @Result(column="price", property="price", jdbcType=JdbcType.BIGINT),
        @Result(column="renew_times", property="renewTimes", jdbcType=JdbcType.INTEGER),
        @Result(column="bill_type", property="billType", jdbcType=JdbcType.TINYINT),
        @Result(column="recharge_fee", property="rechargeFee", jdbcType=JdbcType.BIGINT),
        @Result(column="left_game", property="leftGame", jdbcType=JdbcType.INTEGER),
        @Result(column="play_games", property="playGames", jdbcType=JdbcType.INTEGER),
        @Result(column="left_time", property="leftTime", jdbcType=JdbcType.BIGINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="startTime", property="starttime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="end_time", property="endTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="state", property="state", jdbcType=JdbcType.TINYINT),
        @Result(column="remove", property="remove", jdbcType=JdbcType.TINYINT),
        @Result(column="game_cfg", property="gameCfg", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<RoomCardRoomListDomain> selectByExampleWithBLOBs(RoomCardRoomListDomainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @SelectProvider(type=RoomCardRoomListDomainSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="player_id", property="playerId", jdbcType=JdbcType.BIGINT),
        @Result(column="super_id", property="superId", jdbcType=JdbcType.BIGINT),
        @Result(column="player_avatar", property="playerAvatar", jdbcType=JdbcType.VARCHAR),
        @Result(column="group_id", property="groupId", jdbcType=JdbcType.INTEGER),
        @Result(column="game_id", property="gameId", jdbcType=JdbcType.INTEGER),
        @Result(column="game_name", property="gameName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_by", property="payBy", jdbcType=JdbcType.TINYINT),
        @Result(column="price", property="price", jdbcType=JdbcType.BIGINT),
        @Result(column="renew_times", property="renewTimes", jdbcType=JdbcType.INTEGER),
        @Result(column="bill_type", property="billType", jdbcType=JdbcType.TINYINT),
        @Result(column="recharge_fee", property="rechargeFee", jdbcType=JdbcType.BIGINT),
        @Result(column="left_game", property="leftGame", jdbcType=JdbcType.INTEGER),
        @Result(column="play_games", property="playGames", jdbcType=JdbcType.INTEGER),
        @Result(column="left_time", property="leftTime", jdbcType=JdbcType.BIGINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="startTime", property="starttime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="end_time", property="endTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="state", property="state", jdbcType=JdbcType.TINYINT),
        @Result(column="remove", property="remove", jdbcType=JdbcType.TINYINT)
    })
    List<RoomCardRoomListDomain> selectByExample(RoomCardRoomListDomainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @Select({
        "select",
        "id, player_id, super_id, player_avatar, group_id, game_id, game_name, pay_by, ",
        "price, renew_times, bill_type, recharge_fee, left_game, play_games, left_time, ",
        "create_time, startTime, end_time, state, remove, game_cfg",
        "from room_card_room_list",
        "where id = #{id,jdbcType=BIGINT}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="player_id", property="playerId", jdbcType=JdbcType.BIGINT),
        @Result(column="super_id", property="superId", jdbcType=JdbcType.BIGINT),
        @Result(column="player_avatar", property="playerAvatar", jdbcType=JdbcType.VARCHAR),
        @Result(column="group_id", property="groupId", jdbcType=JdbcType.INTEGER),
        @Result(column="game_id", property="gameId", jdbcType=JdbcType.INTEGER),
        @Result(column="game_name", property="gameName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_by", property="payBy", jdbcType=JdbcType.TINYINT),
        @Result(column="price", property="price", jdbcType=JdbcType.BIGINT),
        @Result(column="renew_times", property="renewTimes", jdbcType=JdbcType.INTEGER),
        @Result(column="bill_type", property="billType", jdbcType=JdbcType.TINYINT),
        @Result(column="recharge_fee", property="rechargeFee", jdbcType=JdbcType.BIGINT),
        @Result(column="left_game", property="leftGame", jdbcType=JdbcType.INTEGER),
        @Result(column="play_games", property="playGames", jdbcType=JdbcType.INTEGER),
        @Result(column="left_time", property="leftTime", jdbcType=JdbcType.BIGINT),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="startTime", property="starttime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="end_time", property="endTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="state", property="state", jdbcType=JdbcType.TINYINT),
        @Result(column="remove", property="remove", jdbcType=JdbcType.TINYINT),
        @Result(column="game_cfg", property="gameCfg", jdbcType=JdbcType.LONGVARCHAR)
    })
    RoomCardRoomListDomain selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @UpdateProvider(type=RoomCardRoomListDomainSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") RoomCardRoomListDomain record, @Param("example") RoomCardRoomListDomainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @UpdateProvider(type=RoomCardRoomListDomainSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") RoomCardRoomListDomain record, @Param("example") RoomCardRoomListDomainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @UpdateProvider(type=RoomCardRoomListDomainSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") RoomCardRoomListDomain record, @Param("example") RoomCardRoomListDomainExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @UpdateProvider(type=RoomCardRoomListDomainSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(RoomCardRoomListDomain record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @Update({
        "update room_card_room_list",
        "set player_id = #{playerId,jdbcType=BIGINT},",
          "super_id = #{superId,jdbcType=BIGINT},",
          "player_avatar = #{playerAvatar,jdbcType=VARCHAR},",
          "group_id = #{groupId,jdbcType=INTEGER},",
          "game_id = #{gameId,jdbcType=INTEGER},",
          "game_name = #{gameName,jdbcType=VARCHAR},",
          "pay_by = #{payBy,jdbcType=TINYINT},",
          "price = #{price,jdbcType=BIGINT},",
          "renew_times = #{renewTimes,jdbcType=INTEGER},",
          "bill_type = #{billType,jdbcType=TINYINT},",
          "recharge_fee = #{rechargeFee,jdbcType=BIGINT},",
          "left_game = #{leftGame,jdbcType=INTEGER},",
          "play_games = #{playGames,jdbcType=INTEGER},",
          "left_time = #{leftTime,jdbcType=BIGINT},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "startTime = #{starttime,jdbcType=TIMESTAMP},",
          "end_time = #{endTime,jdbcType=TIMESTAMP},",
          "state = #{state,jdbcType=TINYINT},",
          "remove = #{remove,jdbcType=TINYINT},",
          "game_cfg = #{gameCfg,jdbcType=LONGVARCHAR}",
        "where id = #{id,jdbcType=BIGINT}"
    })
    int updateByPrimaryKeyWithBLOBs(RoomCardRoomListDomain record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table room_card_room_list
     *
     * @mbg.generated Sat Jun 23 19:49:58 CST 2018
     */
    @Update({
        "update room_card_room_list",
        "set player_id = #{playerId,jdbcType=BIGINT},",
          "super_id = #{superId,jdbcType=BIGINT},",
          "player_avatar = #{playerAvatar,jdbcType=VARCHAR},",
          "group_id = #{groupId,jdbcType=INTEGER},",
          "game_id = #{gameId,jdbcType=INTEGER},",
          "game_name = #{gameName,jdbcType=VARCHAR},",
          "pay_by = #{payBy,jdbcType=TINYINT},",
          "price = #{price,jdbcType=BIGINT},",
          "renew_times = #{renewTimes,jdbcType=INTEGER},",
          "bill_type = #{billType,jdbcType=TINYINT},",
          "recharge_fee = #{rechargeFee,jdbcType=BIGINT},",
          "left_game = #{leftGame,jdbcType=INTEGER},",
          "play_games = #{playGames,jdbcType=INTEGER},",
          "left_time = #{leftTime,jdbcType=BIGINT},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "startTime = #{starttime,jdbcType=TIMESTAMP},",
          "end_time = #{endTime,jdbcType=TIMESTAMP},",
          "state = #{state,jdbcType=TINYINT},",
          "remove = #{remove,jdbcType=TINYINT}",
        "where id = #{id,jdbcType=BIGINT}"
    })
    int updateByPrimaryKey(RoomCardRoomListDomain record);
}